package agh.rozproszony.model;

import java.io.Serializable;

public class Message implements Serializable{

    private int id;
    private String title;
    private String content;
    private int senderId;
    private int recipientId;
    private int readed;

    public Message() {
    }

    public Message(int id, String title, String content, int senderId, int recipientId, int readed) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.senderId = senderId;
        this.recipientId = recipientId;
        this.readed = readed;
    }

    /**
     * Pobiera Id wiadomosci
     *
     * @return
     */
    public int getId() {
        return id;
    }

    /**
     * Ustawia Id wiadomosci
     *
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * Pobiera tytul wiadomosci
     *
     * @return
     */
    public String getTitle() {
        return title;
    }

    /**
     * Ustawia tytul wiadomosci
     *
     * @return
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * Pobiera tresc wiadomosci
     *
     * @return
     */
    public String getContent() {
        return content;
    }

    /**
     * Ustawia tresc wiadomosci
     *
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * Pobiera Id nadawcy
     *
     * @return
     */
    public int getSenderId() {
        return senderId;
    }

    /**
     * Ustawia Id nadwacy
     *
     * @param senderId
     */
    public void setSenderId(int senderId) {
        this.senderId = senderId;
    }

    /**
     * Pobiera Id odbiorcy
     *
     * @return
     */
    public int getRecipientId() {
        return recipientId;
    }

    /**
     * Ustawia Id odbiorcy
     *
     * @param recipientId
     */
    public void setRecipientId(int recipientId) {
        this.recipientId = recipientId;
    }

    /**
     * Pobiera czy przeczytano wiadomosc
     *
     * @return
     */
    public int getReaded() {
        return readed;
    }

    /**
     * Ustawia czy przeczytano wiadomosc
     *
     * @param readed
     */
    public void setReaded(int readed) {
        this.readed = readed;
    }
}
